home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6575 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: cnn.exu.ericsson.se!news
  2. From: ebumow@ebu.ericsson.com (Mickey Williams 66753)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Pure Virtual Destructor Question
  5. Date: 9 Feb 1996 18:13:25 GMT
  6. Organization: Ericsson Inc.
  7. Distribution: world
  8. Message-ID: <4fg2s5$r02@cnn.exu.ericsson.se>
  9. References: <4fecq0$k4e@news4.digex.net>
  10. Reply-To: ebumow@ebu.ericsson.com
  11. NNTP-Posting-Host: franklin.ebu.ericsson.se
  12.  
  13. In article k4e@news4.digex.net,  ell@access4.digex.net (Ell) writes:
  14.  
  15. >Immediately above you are logically "defining" your "pure virtual" 
  16. >destructor "inside the class where it is "declared" as a pure virtual
  17. >function.  It is _illegal_ to logically, or physically "define" a pure
  18. >virtual function in the class it is "declared" in.  A pure virtual should
  19. >only be defined in classes derived from the class where the pure virtual
  20. >is declared.  Only derived classes should "do some destructor stuff".
  21.  
  22. This is not true in the case of pure virtual destructors. You must
  23. always provide a function body for a virtual dtor, even if it
  24. is pure.
  25.  
  26.  
  27. ------
  28.  Mickey Williams
  29.  Author of: - Essential Visual C++ 4
  30.             - Develop a Professional Visual C++ Application in 21 Days
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.